<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap js-check-wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">后台菜单管理</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li><a href="{:url('Menu/index')}">后台菜单</a></li>
                                <li><a href="{:url('Menu/add')}">添加菜单</a></li>
                                <li class="layui-this"><a href="{:url('Menu/lists')}">所有菜单</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form class="layui-form js-ajax-form" action="{:url('menu/listorders')}" method="post">
                                        <span class="layui-btn-group">
                                            <a class="layui-btn layui-btn-xs js-ajax-dialog-btn" href="{:url('menu/exportMenuLang')}" data-msg="您确定生成菜单多语言包吗？请确保应用目录下lang目录可写！">生成菜单多语言包</a>
                                            <a class="layui-btn layui-btn-warm layui-btn-xs" href="{:url('menu/getactions')}">导入新菜单</a>
                                        </span>
                                        <div style="display:block;text-align:left;" class="layui-btn layui-btn-warm" style="margin: 0 0 5px 0;">
                                            请在开发人员指导下进行以上操作！
                                        </div>
                                        <table class="layui-table">
                                            <thead>
                                                <tr>
                                                    <th width="50">ID</th>
                                                    <th>菜单英文名称</th>
                                                    <th width="50">状态</th>
                                                    <th width="90">管理操作</th>
                                                </tr>
                                            </thead>
                                            <foreach name="menus" item="vo">
                                                <tr>
                                                    <td>{$vo.id}</td>
                                                    <td>{$vo.name}:{$vo.app}/{$vo.controller}/{$vo.action}</td>
                                                    <td>
                                                        <span class="layui-btn layui-btn-xs layui-btn-warm">
                                                            <if condition="$vo['status'] eq 1">
                                                                显示
                                                                <else />
                                                                隐藏
                                                            </if>
                                                        </span>
                                                    </td>
                                                    <td>
                                                        <span class="layui-btn-group">
                                                            <a class="layui-btn layui-btn-xs layui-btn-normal" href="{:url('menu/edit',array('id'=>$vo['id']))}">编辑</a>
                                                            <a class="layui-btn layui-btn-xs layui-btn-danger js-ajax-delete" href="{:url('menu/delete',array('id'=>$vo['id']))}">删除</a>
                                                        </span>
                                                    </td>
                                                </tr>
                                            </foreach>
                                            <thead>
                                                <tr>
                                                    <th width="50">ID</th>
                                                    <th>菜单英文名称</th>
                                                    <th width="50">状态</th>
                                                    <th width="90">管理操作</th>
                                                </tr>
                                            </thead>
                                        </table>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>